import { http } from "@/utils/http";

export const GetActivities = (
	data: Eps.HomeService.GetActivities_Params = {}
): Promise<Eps.HomeService.GetActivities> => {
	return http.post(`/HomeService/GetActivities`, Object.values(data));
};

export const GetActivity = (
	data: Eps.HomeService.GetActivity_Params = {}
): Promise<Eps.HomeService.GetActivity> => {
	return http.post(`/HomeService/GetActivity`, Object.values(data));
};

export const GetAdvertise = (
	data: Eps.HomeService.GetAdvertise_Params = {}
): Promise<Eps.HomeService.GetAdvertise> => {
	return http.post(`/HomeService/GetAdvertise`, Object.values(data));
};

export const GetAdvertiseByType = (
	data: Eps.HomeService.GetAdvertiseByType_Params = {}
): Promise<Eps.HomeService.GetAdvertiseByType> => {
	return http.post(`/HomeService/GetAdvertiseByType`, Object.values(data));
};

export const GetAnnouncement = (
	data: Eps.HomeService.GetAnnouncement_Params = {}
): Promise<Eps.HomeService.GetAnnouncement> => {
	return http.post(`/HomeService/GetAnnouncement`, Object.values(data));
};

export const GetAnnouncements = (
	data: Eps.HomeService.GetAnnouncements_Params = {}
): Promise<Eps.HomeService.GetAnnouncements> => {
	return http.post(`/HomeService/GetAnnouncements`, Object.values(data));
};
